Skip to content

fix(ui): paint the scrim and the active select option without the important modifier - #1320

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix/ui-important-modifiers
Nov 23, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
fix/ui-important-modifiers

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

The last important modifiers of the dashboard sat on the dialog scrim (MdDialog, AdjustmentsModal, DeleteEntryModal) and on the active option of the select. Neither had a real need for it.

The scrims needed it because the vue-final-modal stylesheet was imported unlayered, and an unlayered rule beats every utility in a layer whatever its specificity. The stylesheet now loads into the base layer, below the utilities, so the plain bg-scrim/md-scrim wins. The active select option needed it to outrank the hover and pressed rules of the state layer. It now takes the focus state through a data-active variant, which is emitted after them at the same specificity. Nothing looks different: the built CSS keeps the same rules in the same effective order.

Completes the remainder of task 7.7 of migrate-content-to-components.

Type of change

  • fix - bug fix

How was this tested?

  • Style gate test extended: none of the four components uses the important modifier, and style.css imports the vue-final-modal stylesheet into a layer.
  • npm run eslint, npm run typecheck, vitest on src/anchors, src/style-gate and src/components (5686 passed).
  • vite build: the overlay rule sits in the base layer, ahead of the utilities, and the data-active rule follows the hover rule.

Checklist

  • Commit messages follow the Conventional Commits convention documented in CLAUDE.md
  • Tests cover the change
  • ./gradlew build passes locally (frontend checks only)
  • Documentation and configuration samples are updated if the change is user-facing (not user-facing)
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

…ortant modifier

The dialog scrims carried an important modifier because the vue-final-modal
stylesheet is unlayered and so beats every layered Tailwind utility. The
stylesheet is now imported into the base layer, below the utilities, and the
scrim wins on its own.

The active select option carried md-state-focus! to beat the hover and
pressed state layer rules. It now takes the focus state from a data-active
variant, which sorts after them with the same specificity.

Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
@TheMeinerLP TheMeinerLP added the ci:e2e Run the dashboard end-to-end tests label Nov 23, 2026
@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 4a9b32f Nov 23, 2026
54 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/ui-important-modifiers branch November 23, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the dashboard end-to-end tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant